package com.ftf.tp.user.infrastructure.mapper.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author tanghao
 * @date 2022/9/16
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`action`")
public class Action {
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 用户昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 行为
     */
    @TableField(value = "`action`")
    private String action;

    /**
     * 目标类型
     */
    @TableField(value = "target_type")
    private String targetType;

    /**
     * 目标id
     */
    @TableField(value = "target_id")
    private String targetId;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    private Date createdTime;
}